package com.evola.rm.view.newprojectwizard
{
	import com.evola.rm.view.newprojectwizard.util.NewProjectWizardLanguage;
	
	import mx.collections.ArrayCollection;

	[Bindable]
	public class NewProjectWizardModel
	{
		
		public var projectName: String;
		public var projectLocation : String;
		
		public var languageFiles : ArrayCollection;
		
		public var viewIndex : int= 0;
		
		public var projectInfoError:String;
		public var languagesError : String;
		
		public function NewProjectWizardModel()
		{
		}
		
		public function init() : void{
			
			projectName = "New Project";
			projectLocation = null;
			viewIndex = 0;
			projectInfoError = null;
			languagesError = null;
			
			languageFiles = new ArrayCollection();
			
			var lang : NewProjectWizardLanguage = new NewProjectWizardLanguage();
			lang.name="English";
			lang.code="en_US";
			languageFiles.addItem(lang);
		}
	}
}